This allows you to protect a process from the unpredictable delays caused by paging. Of course the locked memory is not available for the address spaces of other processes. The system must have enough physical memory to hold the real-time address space plus space for a minimum of other activities.
The system calls used to lock memory are discussed in detail in Chapter 4, "Managing Virtual Memory in a RealTime Program."